import request from "@/utils/request";

// 分页查询
export function findAll(info) {
  return request({
    url: '/reservationInfo/findAll',
    method: 'post',
    data: info
  })
}

// 添加
export function addInfo(info) {
  return request({
    url: '/reservationInfo/addReservationInfo',
    method: 'post',
    data: info
  })
}

// 修改
export function editInfo(info) {
  return request({
    url: '/reservationInfo/updateReservationInfo',
    method: 'post',
    data: info
  })
}

// 查租房类型
export function findTypeName() {
  return request({
    url: '/reservationInfo/findTypeName',
    method: 'get'
  })
}

// 根据id单个删除
export function delInfoById(id) {
  return request({
    url: '/reservationInfo/deleteReservationInfo',
    method: 'get',
    params: { id }
  })
}

// 批量删除
export function delInfoBatch(ids) {
  return request({
    url: '/reservationInfo/deleteReservationInfoBatch',
    method: 'get',
    params: ids
  })
}
